package com.esender.common.util;

import com.esender.common.model.StandardReport;

import java.util.concurrent.ConcurrentHashMap;

/**
 * 用于CMPP的状态回调时，获取核心信息的方式
 */
public class CMPPDeliverRepoMapUtil {
    private static ConcurrentHashMap<String, StandardReport> map = new ConcurrentHashMap();

    public static void put(String sequence,StandardReport standardReport){
        map.put(sequence,standardReport);
    }
    public static StandardReport get(String msgId){
        return map.get(msgId);
    }
    public static StandardReport remove(String msgId){
        return map.remove(msgId);
    }
}
